#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
int main()
{
    int n = 0;
    int i = 0;
    int arr[20][20] = {0};
    scanf("%d", &n);
    for (i = 0; i < n; i++)
    {
        int j = 0;
        for (j = 0; j < n; j++)
        {
            scanf("%d", &arr[i][j]);
        }
    }
    for (i = 0; i < n; i++)
    {
        int j = 0;
        for (j = 0; j < n; j++)
        {
            printf("%d ", arr[i][j]);
        }
        printf("\n");
    }
    return 0;
}